package models;

import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.ManyToOne;

@Entity
@PrimaryKeyJoinColumn(name="id", referencedColumnName="id")
public class CommentEpisode extends Comment{
	
	@ManyToOne
	private Episode episode;

	public CommentEpisode(User user, String comment, Episode episode) {
		super(user, comment);
		this.episode = episode;
	}

	public Episode getEpisode() {
		return episode;
	}

	public void setEpisode(Episode episode) {
		this.episode = episode;
	}
	
	
	

}
